<a class="diy-layer external" style="width: {$diylayer['style']['width']}px; position: fixed; display: block; overflow: hidden; z-index: 999; {if $diylayer['params']['iconposition']=='left top'}top: {$diylayer['style']['top']}px; left: {$diylayer['style']['left']}px; text-align: left;{elseif $diylayer['params']['iconposition']=='right top'}top: {$diylayer['style']['top']}px; right: {$diylayer['style']['left']}px; text-align: left;{elseif $diylayer['params']['iconposition']=='left bottom'}bottom: {$diylayer['style']['top']}px; left: {$diylayer['style']['left']}px; text-align: left;{elseif $diylayer['params']['iconposition']=='right bottom'}bottom: {$diylayer['style']['top']}px; right: {$diylayer['style']['left']}px; text-align: left;{/if}" href="{$diylayer['params']['linkurl']}"><img src="{php echo tomedia($diylayer['params']['imgurl'])}" style="height: auto; width: 100%; display: block;" /></a>